package per.dg.multiprocesskotlin

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import per.dg.multiprocesskotlin.aidl.AIDLClientActivity
import per.dg.multiprocesskotlin.messenger.MessengerClientActivity

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
    }

    fun onClick(view: View) {
        when(view.id){
            R.id.bt_messenger ->{
                startActivity(Intent(this, MessengerClientActivity::class.java))
            }
            R.id.bt_aidl ->{
                startActivity(Intent(this, AIDLClientActivity::class.java))
            }
        }
    }
}